home *** CD-ROM | disk | FTP | other *** search
/ IRIX Development Foundation 1.1 for IRIX 6.4 / SGI IRIX 6.4 Development Foundation 1.1.iso / relnotes / modules / ch2.z / ch2
Text File  |  1998-03-26  |  2KB  |  58 lines

  1. Modules installation notes
  2. --------------------------
  3.  
  4. The Modules package currently installs entirely into /opt/modules/2.2.1.
  5. The manpages exist in that directory. 
  6.  
  7. You must create a symbolic link named modules which points to the version
  8. installed if it is not already present. This will set the default version
  9. of modules. Initial installs of the modules package will create this link
  10. if one is not present.
  11. # cd /opt/modules
  12. # ln -s 2.2.1 modules
  13.  
  14. Users must initilize modules and load the 'modules' modulefile to
  15. see the manpages (module, modulesfile).
  16. e.g. (csh)
  17. % source /opt/modules/modules/init/csh
  18. % module load modules
  19. % man module
  20. % man modulefile
  21.  
  22. The /etc/cshrc and /etc/profile can be used to initialize modules.
  23. It is strongly suggested that users add the initilization to their login
  24. scripts so modules is readily available in sub-shells and batch environments.
  25. Since the "module" command is an alias in csh and a function in ksh,
  26. the following examples work well.
  27.  
  28. C-shell .login and .cshrc:
  29.  
  30. # This initilizes modules in your initial login and remote shells (.login).
  31. if (-f /opt/modules/modules/init/csh) then
  32.    source /opt/modules/modules/init/csh
  33.    module load modules
  34. endif
  35.  
  36. # This initializes the module command in csh subshells (.cshrc). No need
  37. # to reload any modulefiles.
  38. if (-f /opt/modules/modules/init/csh) then
  39.    source /opt/modules/modules/init/csh
  40. endif
  41.  
  42. KSH (POSIX) .profile and .env:
  43.  
  44. # This initilizes modules in your initial login shell (.profile).
  45. if [ -f /opt/modules/modules/init/ksh ] ; then
  46.    . /opt/modules/modules/init/ksh
  47.    module load modules
  48. fi
  49.  
  50. # This initializes the module command in ksh subshells (e.g. $ENV=.env).
  51. # No need reload any modulefiles.
  52. if [ -f /opt/modules/modules/init/ksh ] ; then
  53.    . /opt/modules/modules/init/ksh
  54. fi
  55.  
  56. The modulefile manpage explains the basics in creating a modulefile.
  57. Since modulefiles are basicly Tcl scripts, knowledge of Tcl is helpful.
  58.